<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@page import="com.base.model.ServiceInfo"%>
    <%
    	ServiceInfo info = new ServiceInfo();
	    if(session.getAttribute("userName")==null){ 
	    	response.sendRedirect(request.getContextPath()+"/pages/admin/login.jsp");
	    }else{
	    	info = (ServiceInfo)request.getAttribute("entity");
	    }
    %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>修改服务信息</title>
	<link href="<%=request.getContextPath() %>/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<style type="text/css"> 
<!--
body,td,th {
	font-size: 9pt;
}
.border-l-b-r-t {
	BORDER-RIGHT: #cecfce 1px solid; BORDER-TOP: #cecfce 1px solid; BORDER-LEFT: #cecfce 1px solid; BORDER-BOTTOM: #cecfce 1px solid
}
.main_table{
      font-size:12px;
}
.main_table input{
   border:1px FF9900 solid;
   background:#f9b88a;
}
 
.main_table textarea{
   border:1px FF9900 solid;
   background:#f9b88a;
 
 
}
-->
</style>
 
<!-- 添加留言 -->
<script language="javascript"> 
function check()
{
	if (form1.serviceSubject.value=="")
	{alert("服务项目名称不能为空！");
	form1.serviceSubject.focus();
	return false;
	}
 
	if (form1.serviceContent.value=="")
	{alert("描述不能为空！");
	form1.serviceContent.focus();
	return false;
	}
	return true;
}

function update(){
	if(check()){
		document.form1.action = "ServiceServlet.do?method=update";
		document.form1.submit();
	}
}
function list(){
	document.form1.action = "ServiceServlet.do?method=list";
	document.form1.submit();
}
</script>
<FORM name="form1" method="post" onSubmit="update()">
<INPUT type="hidden" name=serviceId class=inputstyle id="serviceId" value="<%=info.getServiceId() %>">
<TABLE width="95%" border="0"  align="center" cellPadding="2" cellSpacing="0" class="main_table">
<TR>
      <td height="42" colspan="2">&nbsp;</td>
      </TR>
      <TR>
        <TD noWrap align=right width="7%">服务项目名称： </TD>
        <TD width="93%"><INPUT name=serviceSubject class=inputstyle id="serviceSubject" value="<%=info.getServiceSubject() %>">
            <font color="#FF0000">*</font></TD>
      </TR>
      <TR>
        <TD noWrap align=right width="7%">描述： </TD>
        <TD width="93%"><INPUT type="input" name=serviceContent id="serviceContent" value="<%=info.getServiceContent() %>"></INPUT>
            <font color="#FF0000">*</font></TD>
      </TR>
      <TR>
        <TD noWrap align=right height=36><INPUT type=submit value=修改 name=Submit></TD></TD>
        <TD><INPUT type=button value=返回  name=back onclick="list();"></TD>
      </TR>
</TABLE>
  </FORM>
</body>
</html>